if (USE_PSI3)

  set(formic_dir_for_this_test ${FORMIC_BINARY_DIR}/Testing/tests/h2_sto3g)

  file(MAKE_DIRECTORY ${formic_dir_for_this_test})

  configure_file(input.dat ${formic_dir_for_this_test}/input.dat COPYONLY)
  configure_file(input.txt ${formic_dir_for_this_test}/input.txt COPYONLY)

  add_test(NAME h2_sto3g_psi3
           WORKING_DIRECTORY ${formic_dir_for_this_test}
           COMMAND ${PSI3_EXE} input.dat
          )

  add_test(NAME h2_sto3g_fqmc
           WORKING_DIRECTORY ${formic_dir_for_this_test}
           COMMAND fqmc input.txt output.txt
          )

  add_test(NAME h2_sto3g_check_results
           WORKING_DIRECTORY ${formic_dir_for_this_test}
           COMMAND test_checker -compare_float "psi3 scf energy"
                                               output.dat
                                               "SCF total energy   ="
                                               -1
                                               -1.066108669522
                                               1.0e-9
                                -compare_float "fqmc scf hartree fock energy"
                                               output.txt
                                               "Hartree Fock energy ="
                                               0
                                               -1.066108669522
                                               1.0e-9
                                -compare_float "fqmc fci energy"
                                               output.txt
                                               "mean ="
                                               -1
                                               -1.101150345416
                                               1.0e-6
          )

  unset(formic_dir_for_this_test)

endif (USE_PSI3)


#add_executable(fqmc_test3 test.cpp)
#target_link_libraries(fqmc_test3 formic_fqmc
#                                 formic_test_driver)
#
#configure_file(input.dat ${FORMIC_BINARY_DIR}/src/formic/fqmc/test3/input.dat
#               COPYONLY
#              )
#
#configure_file(input.txt ${FORMIC_BINARY_DIR}/src/formic/fqmc/test3/input.txt
#               COPYONLY
#              )
#
#if (USE_PSI3)
#  add_test(NAME fqmc_test3_psi3
#           WORKING_DIRECTORY ${FORMIC_BINARY_DIR}/src/formic/fqmc/test3
#           COMMAND ${PSI3_EXE} input.dat
#          )
#  add_test(NAME fqmc_test3
#           WORKING_DIRECTORY ${FORMIC_BINARY_DIR}/src/formic/fqmc/test3
#           COMMAND fqmc_test3 input.txt output.txt
#          )
#endif (USE_PSI3)
